package com.files.crawler;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author 袁强
 * @version 2024年10月17日 21:31:30
 */
@SpringBootApplication
public class ApplicationRun extends SpringBootServletInitializer {

	/** 
     * 实现SpringBootServletInitializer可以让spring-boot项目在web容器中运行 
     */  
    @Override  
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        builder.sources(this.getClass());  
        return super.configure(builder);  
    }  
    
	public static void main(String[] args) {
        SpringApplication.run(ApplicationRun.class, args);
	}
}
